<layout name="Iflayout"/>
<div class="xyh-content">

    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><em class="glyphicon glyphicon-cloud-upload"></em>
                专题列表
            </h3>
        </div>

    </div>

    <div class="row margin-botton">
        <div class="col-sm-6 column">
            <div class="btn-group btn-group-md">
                <button class="btn btn-primary" type="button" onclick="goUrl('/xyhai.php?s=/Special/add')"><em class="glyphicon glyphicon-plus-sign"></em> 添加专题</button>
                <button class="btn btn-default" type="button" onclick="doConfirmBatch('/xyhai.php?s=/Special/del/batchFlag/1', '确实要删除选择项吗？')"><em class="glyphicon glyphicon-remove-circle"></em> 删除</button>
                <button class="btn btn-default" type="button" onclick="goUrl('/xyhai.php?s=/Special/trach')"><em class="glyphicon glyphicon-trash"></em> 回收站</button>

            </div>
        </div>
        <div class="col-sm-6 text-right">
            <form class="form-inline" method="post" action="/xyhai.php?s=/Special/index">
                <div class="form-group">
                    <label class="sr-only" for="inputKeyword">关键字</label>
                    <input type="text" class="form-control" name="keyword" id="inputKeyword" placeholder="关键字" value="">
                </div>
                <button type="submit" class="btn btn-default">搜索</button>
            </form>        </div>
    </div>

    <div class="row">
        <div class="col-lg-12">
            <form action="" method="post" id="form_do" name="form_do">
                <div class="table-responsive">
                    <table class="table table-hover xyh-table-bordered-out">
                        <thead>
                        <tr class="active">
                            <th><input type="checkbox" id="check"></th>
                            <th>编号</th>
                            <th>标题</th>
                            <th>分类</th>
                            <th>点击</th>
                            <th>更新时间</th>
                            <th class="text-right">操作</th>
                        </tr>
                        </thead>
                        <tbody>

                        <foreach name="list" item="arr">
                        <tr>
                            <td><input type="checkbox" name="key[]" value="1"></td>
                            <td>{$arr['id']}</td>
                            <td class="aleft" style="color:{$arr['color']}">{$arr['title']}


                                <span style="color:#079B04;">[<foreach name="lists" item="brr">{$brr['name']}&nbsp;</foreach>]</span>


                            </td>
                            <td>{$arr['name']}</td>
                            <td>{$arr['click']}</td>
                            <td>{$arr['updatetime']|date='Y-m-d H:i:s',###}</td>
                            <td class="text-right">
                                <a href="/index.php?s=/Home/Special/shows/cid/29/id/1#1245037962" target="_blank" class="label label-info">查看</a>
                                <a href="/xyhai.php?s=/Special/edit/id/1" class="label label-success">编辑</a>
                                <a href="javascript:;" onclick="toConfirm('/xyhai.php?s=/Special/del/id/1', '确实要彻底删除吗？')" class="label label-danger">删除</a>
                            </td>
                        </tr>
                        </foreach>

                        </tbody>
                    </table>
                </div>
            </form>

            <div class="row clearfix">
                <div class="col-md-12 column">
                    <div class="xyh-page">
                        <div><span class="rows">共{$count}条记录</span></div>
                        <div>{$page}</div>
                    </div>
                </div>
            </div>


        </div>
    </div>


</div>
</body>
</html>